//
//  QueryVersionOperation.m
//  PlayBall
//
//  Created by Huawen Liu on 12-8-31.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryVersionOperation.h"
#import "JddParameterBuilder.h"

@implementation JddQueryVersionOperation

- (void)main
{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    NSString *bodyString = [JddParameterBuilder updateVersionWidthID:@"0"];
    
    NSData *dataProvince = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryVersionOperationResult:) withObject:dataProvince waitUntilDone:NO];    
}

@end